<%-- 
    Document   : insertBoardFormView
    Created on : 2012. 4. 24, 오후 3:05:50
    Author     : jeong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<script language="javascript">
    
    $(document).ready(function() {
        
        $('#sendFormBtn').click(function() {
             
                var frm = $('form#frm');
            var url = "/webproj/board/insertBoard.jsp";
            $('form#frm').attr("action",url);
            
            frm.submit();
            
          });
    });
        
    
</script>
<form name="frm" id="frm" method="POST">        
    <div id="main">
        <table cellspacing="1" cellpadding="1" border="0">
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>제목</td><td>&nbsp;</td><td><input type="text" name="title" id="title" value="" maxlength="10"/></td>
            </tr>
            <tr>
                <td>내용</td><td>&nbsp;</td><td><textarea name="content" id="content" maxlength="2000">내용을 입력하세요.</textarea></td>
            </tr>
            <tr>
                <td>비밀번호</td><td>&nbsp;</td><td><input type="password" name="password" id="password" value="" /></td>
            </tr>
            <tr>
                <td><input type="button" name="cancel" id="cancel" value="취소"/></td><td><input type="button" name="sendFormBtn" id="sendFormBtn" value="저장"/></td>
            </tr>
        </table>
    </div>
</form>
